import request from '@/utils/request'

// 查询合作网络图片列表-前台
export function listCooperationImg() {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg/listCooperation',
    method: 'get',
  })
}

// 查询合作网络图片列表
export function listCooperationDetailImg(query) {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg/list',
    method: 'get',
    params: query
  })
}

// 查询合作网络图片详细
export function getCooperationDetailImg(imgId) {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg/' + imgId,
    method: 'get'
  })
}

// 新增合作网络图片
export function addCooperationDetailImg(data) {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg',
    method: 'post',
    data: data
  })
}

// 修改合作网络图片
export function updateCooperationDetailImg(data) {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg',
    method: 'put',
    data: data
  })
}

// 删除合作网络图片
export function delCooperationDetailImg(imgId) {
  return request({
    url: '/cooperationDetailImg/cooperationDetailImg/' + imgId,
    method: 'delete'
  })
}
